//
//  BCustomerServiceRegionHeaderView.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/17.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCustomerServiceRegionHeaderView.h"

@interface BCustomerServiceRegionHeaderView ()

@property (nonatomic, strong) QMUILabel *titleLabel;

@end

@implementation BCustomerServiceRegionHeaderView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        //
        self.titleLabel = [QMUILabel new];
        self.titleLabel.textColor = [UIColor qmui_colorWithHexString:@"#6D6D6D"];
        self.titleLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightRegular];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView).offset(12.0);
            make.right.mas_equalTo(self.contentView).offset(-10.0);
            make.centerY.mas_equalTo(self.contentView).offset(4.0);
        }];
    }
    return self;
}

- (void)setTitle:(NSString *)title {
    _title = title;
    //
    self.titleLabel.text = title;
}

@end
